<!doctype html>
<html lang="zh-Hans">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="assets/css/bootstrap.min.css" >
    <link rel="stylesheet" href="assets/css/fontawesome.min.css" >
    <link rel="stylesheet" href="assets/plugins/overlayscrollbars/css/OverlayScrollbars.min.css">
    <link rel="stylesheet" href="assets/css/backend.css" >
    <title>Fresns 管理中心</title>
  </head>
  <body>
    <nav class="navbar navbar-expand-lg navbar-dark bg-dark fresns-navbar">
      <a class="navbar-brand" href="#"><img src="assets/images/logo.png" height="30" alt="Fresns"></a>
      <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
      </button>
      <div class="collapse navbar-collapse" id="navbarNav">
        <ul class="navbar-nav mr-auto">
          <li class="nav-item"><a class="nav-link" href="index.html">仪表盘</a></li>
          <li class="nav-item active"><a class="nav-link" href="system-language.html">系统</a></li>
          <li class="nav-item"><a class="nav-link" href="operating-user.html">运营</a></li>
          <li class="nav-item"><a class="nav-link" href="themes.html">主题</a></li>
          <li class="nav-item"><a class="nav-link" href="plugins.html">插件</a></li>
          <li class="nav-item"><a class="nav-link" href="clients.html">客户端</a></li>
          <li class="nav-item"><a class="nav-link" href="store.html">应用市场</a></li>
        </ul>
        <span class="navbar-text">admin <a href="#">[退出]</a> <a href="https://fresns.cn" target="_blank">站点首页</a></span>
      </div>
    </nav>

    <div class="container-fluid">
      <div class="row">
        <div class="col-sm-3 col-xl-2 fresns-sidebar">
          <h3 class="d-none d-sm-block">系统</h3>
          <button class="btn btn-primary btn-block d-block d-sm-none" type="button" data-toggle="collapse" data-target="#sidebarNav" aria-controls="sidebarNav" aria-expanded="true">
            <i class="fas fa-list-ul"></i> 系统
          </button>
          <div class="collapse show" id="sidebarNav">
            <ul class="nav flex-column">
              <li class="nav-item"><a class="nav-link" href="system-language.html"><i class="fas fa-language"></i> 语言设置</a></li>
              <li class="nav-item"><a class="nav-link" href="system-site.html"><i class="fas fa-tools"></i> 站点设置</a></li>
              <li class="nav-item"><a class="nav-link" href="system-send.html"><i class="far fa-paper-plane"></i> 发信设置</a></li>
              <li class="nav-item"><a class="nav-link" href="system-account.html"><i class="far fa-user"></i> 账号设置</a></li>
              <li class="nav-item"><a class="nav-link" href="system-wallet.html"><i class="far fa-credit-card"></i> 钱包设置</a></li>
              <li class="nav-item"><a class="nav-link" href="system-storage.html"><i class="far fa-folder-open"></i> 存储设置</a></li>
              <li class="nav-item"><a class="nav-link active" href="system-map.html"><i class="fas fa-map-marked-alt"></i> 地图设置</a></li>
            </ul>
            <div class="fresns-copyright">
              <p>Powered by Fresns</p>
            </div>
          </div>
        </div>

        <div class="col-sm-9 col-xl-10 fresns-content">
          <h3>地图设置</h3>
          <!-- Setting Start -->
          <div class="fresns-table">
            <div class="alert alert-warning" style="margin-top: -10px;" role="alert">
              一个服务商只能关联一个插件，同一个插件可以关联多个服务商。地图设置配置多个时，具体使用哪一个，取决于客户端支持。
            </div>
            <div class="table-responsive">
              <table class="table table-hover">
                <thead class="thead-light">
                  <tr>
                    <th scope="col">服务商</th>
                    <th scope="col">关联插件</th>
                    <th scope="col">App ID</th>
                    <th scope="col">App Key</th>
                    <th scope="col">自定义参数</th>
                    <th scope="col">启用状态</th>
                    <th scope="col" style="width: 10%;">操作</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td class="align-middle">Google</td>
                    <td class="align-middle">插件名称</td>
                    <td class="align-middle"></td>
                    <td class="align-middle">123**********789</td>
                    <td class="align-middle">edit</td>
                    <td class="align-middle">
                      <div class="custom-control custom-switch">
                        <input type="checkbox" class="custom-control-input" id="is_enable_1" checked>
                        <label class="custom-control-label" for="is_enable_1">是否启用</label>
                      </div>
                    </td>
                    <td class="align-middle">
                      <button type="button" class="btn btn-link btn-sm text-danger">删除</button>
                    </td>
                  </tr>
                  <tr>
                    <td class="align-middle">Apple</td>
                    <td class="align-middle">插件名称</td>
                    <td class="align-middle"></td>
                    <td class="align-middle">123**********789</td>
                    <td class="align-middle"></td>
                    <td class="align-middle">
                      <div class="custom-control custom-switch">
                        <input type="checkbox" class="custom-control-input" id="is_enable_2" checked>
                        <label class="custom-control-label" for="is_enable_2">是否启用</label>
                      </div>
                    </td>
                    <td class="align-middle">
                      <button type="button" class="btn btn-link btn-sm text-danger">删除</button>
                    </td>
                  </tr>
                  <tr>
                    <td class="align-middle">Tencent</td>
                    <td class="align-middle">插件名称</td>
                    <td class="align-middle">1234</td>
                    <td class="align-middle">123**********789</td>
                    <td class="align-middle"></td>
                    <td class="align-middle">
                      <div class="custom-control custom-switch">
                        <input type="checkbox" class="custom-control-input" id="is_enable_3" checked>
                        <label class="custom-control-label" for="is_enable_3">是否启用</label>
                      </div>
                    </td>
                    <td class="align-middle">
                      <button type="button" class="btn btn-link btn-sm text-danger">删除</button>
                    </td>
                  </tr>
                </tbody>
              </table>
            </div>
            <button type="button" class="btn btn-sm btn-link text-secondary" data-toggle="modal" data-target="#map"><i class="fas fa-plus-circle"></i> 新增服务商</button>
          </div>
          <!-- Setting End -->
        </div>
      </div>
    </div>

    <!-- New Map Modal -->
    <div class="modal fade" id="map" tabindex="-1" role="dialog" aria-labelledby="map" aria-hidden="true">
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <h5 class="modal-title" id="exampleModalLabel">新增服务商</h5>
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
              <span aria-hidden="true">&times;</span>
            </button>
          </div>
          <div class="modal-body">
            <form>
              <div class="form-group row">
                <label for="label" class="col-sm-3 col-form-label">服务商</label>
                <div class="col-sm-9">
                  <select class="custom-select">
                    <option value="1">Google</option>
                    <option value="2">Apple</option>
                    <option value="3">Amap</option>
                    <option value="4">Tencent</option>
                    <option value="5">Baidu</option>
                    <option value="6">Bing</option>
                    <option value="7">Mapbox</option>
                    <option value="8">Here</option>
                    <option value="9">OpenStreetMap</option>
                  </select>
                </div>
              </div>
              <div class="form-group row">
                <label for="label" class="col-sm-3 col-form-label">关联插件</label>
                <div class="col-sm-9">
                  <select class="custom-select">
                    <option value="1">地图插件名称1</option>
                    <option value="2">地图插件名称2</option>
                    <option value="3">地图插件名称3</option>
                    <option value="4">地图插件名称4</option>
                  </select>
                </div>
              </div>
              <div class="form-group row">
                <label for="label" class="col-sm-3 col-form-label">API ID</label>
                <div class="col-sm-9">
                  <input type="text" class="form-control">
                  <small class="form-text text-muted">没有则留空</small>
                </div>
              </div>
              <div class="form-group row">
                <label for="label" class="col-sm-3 col-form-label">API Key</label>
                <div class="col-sm-9">
                  <input type="text" class="form-control" value="123456">
                </div>
              </div>
              <div class="form-group row">
                <label for="label" class="col-sm-3 col-form-label">自定义参数</label>
                <div class="col-sm-9">
                  <input type="text" class="form-control">
                </div>
              </div>
            </form>
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-success">提交</button>
          </div>
        </div>
      </div>
    </div>

    <!-- JavaScript -->
    <script src="assets/js/jquery-3.5.1.slim.min.js"></script>
    <script src="assets/js/bootstrap.bundle.min.js"></script>
    <script src="assets/plugins/overlayscrollbars/js/jquery.overlayScrollbars.min.js"></script>
    <script src="assets/js/backend.js"></script>
  </body>
</html>